package com.sg.dto.biz.pbff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffCycleTypeInstanceDto
 * @使用场景
 */
@Data
public class BffCycleTypeInstanceDto implements Serializable {

    /**
     * 周期类型实例ID
     */
    @ApiModelProperty("周期类型实例ID")
    private String cycleTypeInstanceId;

    /**
     * 周期类型实例标识
     */
    @ApiModelProperty("周期类型实例标识")
    private String cycleTypeInstanceCode;

    /**
     * 周期类型实例名称
     */
    @ApiModelProperty("周期类型实例名称")
    private String cycleStandardName;

    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffCycleTypeInstanceDto that = (BffCycleTypeInstanceDto) o;
        return cycleTypeInstanceId == that.cycleTypeInstanceId && cycleTypeInstanceCode == that.cycleTypeInstanceCode && cycleStandardName == that.cycleStandardName && cycleNumberShortName == that.cycleNumberShortName && isArchive == that.isArchive && subjectLifeCycle == that.subjectLifeCycle && orderNumber == that.orderNumber;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleTypeInstanceId, cycleTypeInstanceCode, cycleStandardName, cycleNumberShortName, isArchive, subjectLifeCycle, orderNumber);
    }


}
   